package com.lt.integration.jpa.component.hibernate.dialect;

/**
 * 字段声明 - MYSQL
 * @author zhurz
 */
public interface ColumnDefinitionMysql {
	// ---------------------<Hibernate自动创建表用>---------------------
	@Deprecated
	public static final String MONEY_COLUM = "decimal(26,2)";
	@Deprecated
	public static final String DATE_COLUM = "datetime";
	@Deprecated
	public static final String DATE = "date";
	@Deprecated
	public static final String TYPE_NUM_COLUM = "int(11)";
	@Deprecated
	public static final String LONG_NUM_COLUM = "bigint(20)";
	@Deprecated
	public static final String NUM_COLUM = "int(11)";
	@Deprecated
	public static final String DOUBLE_COLUM = "double";
	@Deprecated
	public static final String CHAR_COLUM = "char(1)";
	@Deprecated
	public static final String TEXT_COLUM = "text";
	public static final Integer PRECISION = 20;
	public static final Integer SCALE = 6;


	public static final String MONEY_COLUMN = "decimal(26,2)";
	public static final String DATE_COLUMN = "datetime";
	public static final String TYPE_NUM_COLUMN = "int(11)";
	public static final String LONG_NUM_COLUMN = "bigint(20)";
	public static final String NUM_COLUMN = "int(11)";
	public static final String DOUBLE_COLUMN = "double";
	public static final String CHAR_COLUMN = "char(1)";
	public static final String TEXT_COLUMN = "text";

	// 无符号整数
	public static final String NUM_UNSIGNED_COLUMN = "int(11) UNSIGNED";
	public static final String NUM_TYNY_COLUMN = "int(1)";
	public static final String DATETIME_COLUMN = "datetime";

	public static final String INT_UNSIGNED_COLUMN = "int(11) UNSIGNED";
	public static final String INT_TYNY_COLUMN = "int(1)";
}